<%@ page language="java" import="com.alibaba.fastjson.JSONObject" pageEncoding="UTF-8" %>
<%@ page import="weaver.conn.RecordSet" %>
<%@ page import="weaver.general.Util" %>
<%--流程退回调用QMS接口--%>
<%
    JSONObject jsonData = new JSONObject();
    try {
        RecordSet rs = new RecordSet();
        String operators = "";
        String requestid = Util.null2String(request.getParameter("requestid"));
        rs.executeQuery("select distinct userid from workflow_currentoperator\n" +
                " where (isremark in ('0','1','5','7','8','9') or (isremark='4' and viewtype=0))  and requestid = ?", requestid);
        while (rs.next()) {
            String operator = Util.null2String(rs.getString("userid"));
            operators += "".equals(operators) ? operator : "," + operator;
        }
        jsonData.put("operators", operators);
    } catch (Exception e) {
        e.printStackTrace();
    }
    out.print(jsonData.toJSONString());
%>




